
		<div id="main-content"> <!-- Main Content Section with everything -->			
			<!-- Page Head -->			
			<ul class="shortcut-buttons-set">				
				<li><a class="shortcut-button link" href="javascript:void(0)"><span>
					<img src="<?php echo base_url();?>images/icons/image_add_48.png" alt="icon" /><br />
					New
				</span></a></li>
			</ul><!-- End .shortcut-buttons-set -->	
			<select name="category">
			<?php foreach($options as $row):?>
				<option value='<?php echo $row['id'];?>' <?php echo $cid==$row['id']?'selected':'';?>><?php echo $row['name'];?></option>
			<?php endforeach;?>
			</select>			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>子类管理</h3>					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->						
						<table>
							
							<thead>
								<tr>
								   
								   <th>No.</th>
								   <th>Name</th>
								   <th>Rank</th>
								   <th>Operation</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="5">										

									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							<?php $i=0; foreach($query as $row):?>
								<tr>									
									<td><?php $i++;echo $i;?></td>
									<td><?php echo $row['name'];?></td>
									<td><?php echo $row['rank'];?></td>
									<td>
										<!-- Icons -->
										 <a href="<?php echo base_url()?>aio_subcat/modify_subcat/<?php echo $row['id'];?>" title="Edit"><img src="<?php echo base_url()?>images/icons/pencil.png" alt="Edit" /></a>
										 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										 <a href="<?php echo base_url()?>aio_subcat/del_subcat/<?php echo $row['id'];?>" title="Delete" onclick='return del()'><img src="<?php echo base_url()?>images/icons/cross.png" alt="Delete" /></a> 
									</td>
								</tr>
							<?php endforeach;?>	
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
	
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			<div class="clear"></div>			
		</div> <!-- End #main-content -->	
	</div>
</body>
  

<!-- Download From www.exet.tk-->
</html>
<script>
$(function(){
	$("select").change(function(){
		window.location="<?php echo base_url();?>aio_subcat/index/"+$(this).val();
	});
	$(".link").click(function(){
		window.location='<?php echo base_url();?>aio_subcat/new_subcat/'+$("select option:selected").val();
	})	
})
</script>